package com.gdou.mapper;

import com.gdou.dto.UserDto;
import com.gdou.dto.UserSearchDto;
import com.gdou.model.User;

import java.util.List;

public interface UserMapper {
    List<User> selectUsersByPage();

    int insertUser(UserDto userDto);

    int selectUserExists(UserDto userDto);

    int deleteById(Long id);

    int deleteInIds(String id);

    int updateUser(UserDto userDto);

    int selectUserById(Long id);

    List<User> selectUsersBySearch(UserSearchDto userSearchDto);

    List<User> selectUsersByShipId(Long id);

    int updateUserShip_idNull(Integer shipId);

    Long[] selectUserCountsOrderByShip_id();
}
